package cn.tedu.service;

import cn.tedu.pojo.People;
import cn.tedu.pojo.Product;

import java.util.List;
import java.util.Map;

public interface PeopleService {
    List<People> getStudents(Map<String, Object> map);

    People getStudentById(int studentId);

    int isUpdateStudent(People student);
    int isDelStudent(int studentId);

    int isAddStudent(People student);

    int getStudentTotal();

    People getByAccountAndPwd(String studentAccount);

    int isPwdWithStu(People studentInfo);

    void deleteById(int id);

    void addProduct(Product product);

    Product selectProductById(Integer id);

    void updateProduct(Product product);
}
